<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body>
        <div class="main">
            <div class="header">
                <div class="container">
                    <?php $settings = settings()->load('site'); ?>
                    <div class="logo"><a href="<?php echo site_url() ?>"><img src="<?php echo LOGO_URL . $settings['logo']; ?>"></a></div>
                    <div class="right-hea">
                        <?php if(user()->isGuest):?>
                        <div class="box-login">
                            <?php
                            $form_login = $this->beginWidget('CActiveForm', array(
                                'id' => 'login-form',
                                'action' => url('site/login')
                            ));
                            ?>
                            <p>
                                <label>Email</label>
                                <input type="text" class="input-small" name="LoginForm[username]" placeholder="Email">
                            </p>
                            <p>
                                <label>Password</label>
                                <input type="password" class="input-small" name="LoginForm[password]" placeholder="Password">
                            </p>
                            <p style="margin-top:20px;">
                                <button type="submit" class="btn btn-primary">Sign In</button>
                            </p>
                            <div class="clear"></div>
                            <a href="<?php echo url('site/forgot'); ?>">Forgot Password?</a>
                            <a href="#" class="login-face"><img src="<?php echo www(); ?>images/login-face.png" width="227px"/></a>
                            <?php $this->endWidget(); ?>
                        </div>
                        <?php                            else:?>
                        <div class="box-login wel-log" >
                            <a href="<?php echo url('profile/index');?>"> Welcome, <?php echo user()->name;?> </a>
                            <a href="<?php echo url('site/logout');?>"> Log Out</a>
                            <a href="<?php echo url('profile/index');?>"> My Account </a>
                        </div>
                        <?php endif;?>
                        <div class="clear"></div>
                    </div>
                </div><!--container-->
            </div><!--header-->
            <div class="container">
                <div class="nav">
                    <?php
                    $this->widget('zii.widgets.CMenu', array(
                        'items' => array(
                            array('label' => 'HOME', 'url' => array('jobs/index')),
                            array('label' => 'PROFILE', 'url' => array('profile/index')),
                            array('label' => 'JOBS', 'url' => array('jobs/list')),
                            array('label' => 'MY CERTIFICATIONS', 'url' => array('profile/certifications'))
                        ),
                        'encodeLabel' => false,
                        'activateParents' => true,
                            //'htmlOptions' => array('class' => 'nav')
                    ));
                    ?>
                </div>


                <?php echo $content; ?>


                <div class="socail">
                    <a href="#" class="face"></a>
                    <a href="#" class="twter"></a>
                    <a href="#" class="in"></a>
                    <a href="#" class="goo"></a>

                </div>
                <div class="footer">
                    © 2013 ZOCERT. ALL RIGHTS RESERVED  &nbsp;&nbsp; |   &nbsp;&nbsp; 1234 STREET, CITY NAME, STATE, 12345 &nbsp;&nbsp;  |  &nbsp;&nbsp;   (123) 456-7980 &nbsp;&nbsp; |  &nbsp;&nbsp;<a href="#">CONTACT US</a>&nbsp;&nbsp; |&nbsp;&nbsp; <a href="#">SITE MAP</a> &nbsp;&nbsp;| &nbsp;&nbsp;<a href="#">PRIVACY POLICY </a>
                </div><!--footer-->
            </div>
        </div>
    </body>
</html>